#pragma once
#include "vector3.h"
#include "IGeometry.h"
namespace RayTrace{ 

	class CSphere :	public RayTrace::IGeometry
	{
	public:
		CSphere(void);
		CSphere(vector3 c,float r);
		~CSphere(void);

	public:
		double InterSection(Ray myray);
		vector3 GetNormal(vector3 p);

	private:
		vector3 center;
		float  radius;
	public:
		vector3 GetCenter(){return center;}
		float  GetRadius(){return radius;}

		void  SetCenter(vector3 p){center=p;}
		void  SetRadius(float r){radius=r;}

	};
}